<%@ page import="aiball.Player" %>



<div class="fieldcontain ${hasErrors(bean: playerInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="player.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="16" pattern="${playerInstance.constraints.name.matches}" required="" value="${playerInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: playerInstance, field: 'sourceCode', 'error')} required">
	<label for="sourceCode">
		<g:message code="player.sourceCode.label" default="Source Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textArea name="sourceCode" required="" value="${playerInstance?.sourceCode}"/>
</div>

